﻿package mortal.game.view.copy.sunbathCopy.view
{
    import extend.language.*;
    import flash.events.*;
    import mortal.game.manager.*;
    import mortal.game.manager.msgTip.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class SunbathCopyIcon extends ActionBaseIcon
    {
        private static var _instance:SunbathCopyIcon;

        public function SunbathCopyIcon(param1:String)
        {
            super(param1);
            return;
        }// end function

        private function timeCompl() : void
        {
            return;
        }// end function

        override protected function timeOutCaller() : void
        {
            this.setLeftTimeAndState(0, 1);
            return;
        }// end function

        public function updateOpenTime(param1:int, param2:int) : void
        {
            this.setLeftTimeAndState(param1, param2);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this.disEventName = EventName.SunbathCopyEnterViewShow;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            if (_state == 1)
            {
                MsgManager.showRollTipsMsg(Language.getStringByParam(70968, currentTimeStr), MsgRollTipsType.msgRollTips3);
                return;
            }
            super.clickHandler(event);
            return;
        }// end function

        public static function get instance() : SunbathCopyIcon
        {
            if (!_instance)
            {
                _instance = new SunbathCopyIcon(ResFileConst.SunbathCopyIcon);
            }
            return _instance;
        }// end function

        public static function get hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

    }
}
